import requests

res = requests.get("https://mediaim.expedia.com/destination/1/5c3f1928eaad2b566fca58e7d4277c79.jpg?impolicy=fcrop&w=1040&h=580&q=mediumHigh")
print(res.content)

#写文件
with open("美女.jpg","wb") as f:
    f.write(res.content)